package o;

import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.Nullable;

public final class amz {
    private static int ˎ = 0;
    private static boolean ॱ = true;

    public static void ˊ(String str, String str2) {
        if (ˎ == 0) {
            Log.d(str, str2);
        }
    }

    public static void ॱ(String str, String str2) {
        if (ˎ <= 1) {
            Log.i(str, str2);
        }
    }

    public static void ˏ(String str, String str2) {
        if (ˎ <= 2) {
            Log.w(str, str2);
        }
    }

    public static void ˋ(String str, String str2, @Nullable Throwable th) {
        if (!ॱ) {
            ˏ(str, ˊ(str2, th));
        }
        if (ˎ <= 2) {
            Log.w(str, str2, th);
        }
    }

    public static void ˋ(String str, String str2) {
        if (ˎ <= 3) {
            Log.e(str, str2);
        }
    }

    public static void ˊ(String str, String str2, @Nullable Throwable th) {
        if (!ॱ) {
            ˋ(str, ˊ(str2, th));
        }
        if (ˎ <= 3) {
            Log.e(str, str2, th);
        }
    }

    private static String ˊ(String str, @Nullable Throwable th) {
        if (th == null) {
            return str;
        }
        Object message = th.getMessage();
        return !TextUtils.isEmpty(message) ? str + " - " + message : str;
    }
}
